home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1598 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: my atoi function, could someone suggest...
  5. Date: Mon, 15 Jan 96 15:50:37 GMT
  6. Organization: none
  7. Message-ID: <821721037snz@genesis.demon.co.uk>
  8. References: <4cf7ap$q4u@kaleka.seanet.com> <4cq937$if9@ns.RezoNet.NET> <4d6v51$qoh@gryphon.phoenix.net> <821573157snz@genesis.demon.co.uk> <4dbh1j$2hpc@news.gate.net>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4dbh1j$2hpc@news.gate.net> bhutto@gate.net "William Hutto" writes:
  15.  
  16. >>
  17. >>    testl   %esi,%esi
  18. >>    je      .L17
  19. >>    testl   %eax,%eax
  20. >>    je      .L17
  21. >>    negl    %eax
  22. >>..L17
  23. >
  24. >eax was already loaded? That's better optimizing than any compiler I have. 
  25.  
  26. This was with gcc -O2. All local variables (and temporaries) in myatoi() were
  27. allocated to registers. I'll mail the full listing to you if you want -
  28. I'd rather not spark a my compiler vs. your compiler discussion in
  29. comp.lang.c!
  30.  
  31. -- 
  32. -----------------------------------------
  33. Lawrence Kirby | fred@genesis.demon.co.uk
  34. Wilts, England | 70734.126@compuserve.com
  35. -----------------------------------------
  36.